package com.edu;


public class Main {
    String str = new String("hello");
    char[] ch = {'a', 'b', 'c'};

    public void fun(String str, char ch[]) {
        str = "world";
        ch[0] = 'd';
    }

    public static void main(String[] args) {
        Main test1 = new Main();
        test1.fun(test1.str, test1.ch);
        System.out.print(test1.str + " and ");
        System.out.print(test1.ch);
    }
}
